from collections import deque

list1 = [1,2,3,4,5,4,3,2]


if __name__ == '__main__':
    # de = deque(list1)
    #
    # l1 = de.popleft()
    # print(l1)
    #
    # l2 = de.pop()
    # print

    del list1[2]
    print(list1)